﻿/**
 * @author sminutoli
 * version 1.0
 * 
 */
class com.dinmax.flash.central.bridge.MESSAGEItemBridge
extends MovieClip {
		
	private var value:Object;
	private var listener:Object;
	
	private var mcNote:MovieClip;
	private var txt_date:TextField;
	private var txt_from:TextField;
	private var txt_subject:TextField;
	
	public function MESSAGEItemBridge() {
		this.init();
		return;
	};
	
	public function onLoad():Void {
		//trace("MessageItemBridge.as | onLoad()");
		return;
	};
	
	public function onPress():Void {
		listener.displayTextMessage(this.getValue());
		return;
	};
	
	public function init():Void{
	
		return;
	};
		
	public function getValue():Object {
		return value;
	}
	
	public function setDate(date:String):Void {
		txt_date.text = date;
		return;
	};
	
	public function setFrom(from:String):Void {
		txt_from.text = from;
		return;
	};
	
	public function setSubject(subject:String):Void {
		txt_subject.text = subject;
		return;
	};
	
	public function setState(state:String):Void {
		mcNote.gotoAndStop(state);
	};
	
	public function setValue(value:Object):Void {
		this.value = value;
	}

	public function setListener(listener:Object):Void {
		this.listener = listener;
	}
	
}